<template>
	<view :class="{bg141414:theme}" style="min-height: 100vh;">
		<view class="con">
			<back title="抽奖记录"></back>
			<view class=" size26 ra15" :class="theme?'bg292929 colorfff':'bgF5F6F7'">
				<view v-if="isdata" class="flex-ju-c mt8vh">
					<view class="flex-ju-c flex-col">
						<image mode="widthFix" class="width210 ra20" src="/static/nodata.png"></image>
						<view class=" size24">这里什么也没有~</view>
					</view>
				</view>
				
				<view v-for="(item,index) in list" :key="index" class="pg20-30 borderE1E1E1 ra20 mt30">
					<view class="flex-ju-b   ">
						<view class="flex-a-i">
							<view>
								<image class="wh83-83 ra83 mr20" :src="item.headimg"></image>
							</view>
							<view>
								<view :class="theme?' colorfff':''">{{item.username}}</view>
								<view class="color999 mt5 size24">{{item.created_at}}</view>
							</view>
						</view>
						<view class="text-right">{{item.git}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
	
</template>

<script>
	export default {
		data() {
			return {
				list:"",
				isdata:false,
				theme: uni.getStorageSync('theme')
			}
		},
		
		onLoad() {
			this.http('turntable/log').then(res => {
				this.list = res.data
				if(res.data.length){
					this.isdata = false
				}else{
					this.isdata = true
				}
			})
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
